﻿@model RIS.TMP.WEB.APP.Models.MRSaveRestore

@{
    ViewBag.Title = "Save Repair : บันทึกการซ่อม";
}
@section Home{
    <h1 class="page-header">
        Save Repair
        <p class="lead">(บันทึกการซ่อม)</p>
    </h1>
    <form class="form-horizontal well" method="POST">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>

                <div class="editor-label">
                    <label class="control-label" for="select01">รหัสใบแจ้งซ่อม</label>
                </div>
                <div class="editor-field">
                    @Html.DropDownList("ResId", ViewBag.ResId as SelectList, "กรุณาเลือก", new { @style = "width:200px;", @class = "btn btn-default dropdown-toggle" })
                    @*@Html.DropDownList("ResId", String.Empty)*@
                    @Html.ValidationMessageFor(model => model.ResId)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.RemarkRestore)
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.RemarkRestore, new { @style = "width:500px;", @rows = "5" })
                    @Html.ValidationMessageFor(model => model.RemarkRestore)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Invoine)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Invoine)
                    @Html.ValidationMessageFor(model => model.Invoine)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.ChangeRestore)
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.ChangeRestore, new { @style = "width:500px;", @rows = "5" })
                    @Html.ValidationMessageFor(model => model.ChangeRestore)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.FirstSucdate)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.FirstSucdate)
                    @Html.ValidationMessageFor(model => model.FirstSucdate)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.FirstSucTime)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.FirstSucTime)
                    @Html.ValidationMessageFor(model => model.FirstSucTime)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.LastSucdate)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LastSucdate)
                    @Html.ValidationMessageFor(model => model.LastSucdate)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.LastSucTime)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LastSucTime)
                    @Html.ValidationMessageFor(model => model.LastSucTime)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.DaySave)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.DaySave)
                    @Html.ValidationMessageFor(model => model.DaySave)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.HourSave)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.HourSave)
                    @Html.ValidationMessageFor(model => model.HourSave)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.PriceRestorespares)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.PriceRestorespares)
                    @Html.ValidationMessageFor(model => model.PriceRestorespares)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.PriceRestoreH)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.PriceRestoreH)
                    @Html.ValidationMessageFor(model => model.PriceRestoreH)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.PriceRestoreAll)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.PriceRestoreAll)
                    @Html.ValidationMessageFor(model => model.PriceRestoreAll)
                </div>

                <div class="editor-label">
                    <label class="control-label" for="select01">รายละเอียด</label>
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.Remarks, new { @style = "width:500px;", @rows = "5" })
                    @Html.ValidationMessageFor(model => model.Remarks)
                </div>

                <div class="editor-label">
                    <label class="control-label" for="select01">ปิดงานซ่อม</label>
                </div>
                <div class="editor-field">
                    @Html.DropDownList("CloseId", new List<SelectListItem>
                    {
                        new SelectListItem { Text = "ปิดงาน", Value = "1"},
                    }, "กรุณาเลือก", new { @style = "width:200px;", @class = "btn btn-default dropdown-toggle" })
                    @Html.ValidationMessageFor(model => model.Remarks)
                </div>

                <p>
                    <input type="submit" class="btn btn-primary" value="บันทึก" />
                    @Html.ActionLink("ยกเลิก", "Index","Home", new object { }, new { @class = "btn btn-default" })
                </p>
            </fieldset>
        }
        </form>
        }

        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
<script type="text/javascript">
    $(".AB").show();

</script>



        }
